package com.qianqutech.plugin.captcha.captchaUtil.renderer;

import com.qianqutech.plugin.captcha.captchaUtil.service.color.ColorFactory;
import com.qianqutech.plugin.captcha.captchaUtil.service.font.FontFactory;

import java.awt.image.BufferedImage;


public interface TextRenderer {

	void setLeftMargin(int leftMargin);

	void setRightMargin(int rightMargin);

	void setTopMargin(int topMargin);

	void setBottomMargin(int bottomMargin);

	void draw(String text, BufferedImage canvas, FontFactory fontFactory, ColorFactory colorFactory);

}
